Optimal. Leaf size=109 \[ \frac{c 2^{n+\frac{1}{2}} \tan (e+f x) (1-\sec (e+f x))^{\frac{1}{2}-n} (a \sec (e+f x)+a)^m (c-c \sec (e+f x))^{n-1} F_1\left (m+\frac{1}{2};\frac{1}{2}-n,1;m+\frac{3}{2};\frac{1}{2} (\sec (e+f x)+1),\sec (e+f x)+1\right )}{f (2 m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.121691, antiderivative size = 109, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {3912, 137, 136} \[ \frac{c 2^{n+\frac{1}{2}} \tan (e+f x) (1-\sec (e+f x))^{\frac{1}{2}-n} (a \sec (e+f x)+a)^m (c-c \sec (e+f x))^{n-1} F_1\left (m+\frac{1}{2};\frac{1}{2}-n,1;m+\frac{3}{2};\frac{1}{2} (\sec (e+f x)+1),\sec (e+f x)+1\right )}{f (2 m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3912
Rule 137
Rule 136
Rubi steps
\begin{align*} \int (a+a \sec (e+f x))^m (c-c \sec (e+f x))^n \, dx &=-\frac{(a c \tan (e+f x)) \operatorname{Subst}\left (\int \frac{(a+a x)^{-\frac{1}{2}+m} (c-c x)^{-\frac{1}{2}+n}}{x} \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=-\frac{\left (2^{-\frac{1}{2}+n} a c (c-c \sec (e+f x))^{-1+n} \left (\frac{c-c \sec (e+f x)}{c}\right )^{\frac{1}{2}-n} \tan (e+f x)\right ) \operatorname{Subst}\left (\int \frac{\left (\frac{1}{2}-\frac{x}{2}\right )^{-\frac{1}{2}+n} (a+a x)^{-\frac{1}{2}+m}}{x} \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)}}\\ &=\frac{2^{\frac{1}{2}+n} c F_1\left (\frac{1}{2}+m;\frac{1}{2}-n,1;\frac{3}{2}+m;\frac{1}{2} (1+\sec (e+f x)),1+\sec (e+f x)\right ) (1-\sec (e+f x))^{\frac{1}{2}-n} (a+a \sec (e+f x))^m (c-c \sec (e+f x))^{-1+n} \tan (e+f x)}{f (1+2 m)}\\ \end{align*}
Mathematica [F] time = 0.429061, size = 0, normalized size = 0. \[ \int (a+a \sec (e+f x))^m (c-c \sec (e+f x))^n \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.392, size = 0, normalized size = 0. \begin{align*} \int \left ( a+a\sec \left ( fx+e \right ) \right ) ^{m} \left ( c-c\sec \left ( fx+e \right ) \right ) ^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sec \left (f x + e\right ) + a\right )}^{m}{\left (-c \sec \left (f x + e\right ) + c\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \sec \left (f x + e\right ) + a\right )}^{m}{\left (-c \sec \left (f x + e\right ) + c\right )}^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a \left (\sec{\left (e + f x \right )} + 1\right )\right )^{m} \left (- c \left (\sec{\left (e + f x \right )} - 1\right )\right )^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sec \left (f x + e\right ) + a\right )}^{m}{\left (-c \sec \left (f x + e\right ) + c\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]